const data = require('../pages/mine/coupon/moreList/data.js');
const http = require('../utils/http.js');

// 添加购物车
const addCart = (data) => {
    return http.request('POST', `/Cart`, data)
}

// 编辑购物车
const editCart = (data) => {
    return http.request('PUT', `/Cart`, data)
}


// 购物车列表
const getCartList = (data) => {
    return http.request('POST', `/Cart/page`, data)
}
// 修改购物车数量
const getCartListNum = (data) => {
    return http.request('POST', `/Cart/goods_num_update`, data)
}
// 删除购物车商品
const getCartDelName = (data) => {
    return http.request('POST', `/Cart/goods_del`, data)
}

module.exports = {
    addCart,
    editCart,
    getCartList,
    getCartListNum,
    getCartDelName
}